import {createRouter,createWebHashHistory} from 'vue-router'

import Index from '../view/index/indexCom.vue'
import Type from '../view/type/typeCom.vue'
import Buy from '../view/buy/buyCom.vue'
import My from '../view/mine/myCom.vue'
const routes = [
    {path: '/', component: Index ,name:'index' },
    { path: '/type', component: Type,name:'type'  },
    {path: '/buy', component: Buy ,name:'buy'  },
    { path: '/my', component: My ,name:'mine'  },
]

const router =  createRouter({
    history: createWebHashHistory(),
    routes, 
  })

export default router